package bookhive.datasource;

import java.util.Vector;

import bookhive.datastructures.datasource.DataItem;
import bookhive.datastructures.datasource.HashItem;

public interface DataSource {

	public Vector<HashItem> getHashResult();

	public Vector<DataItem> getDataResult();

	public Vector<HashItem> sendHashQuery(String queryData);

	public Vector<DataItem> sendDataQuery(String hash);

	public boolean sendUpdateQuery(String queryData);

	public boolean sendRedundQuery(String queryData);

	public HashItem getRandomRecord();

}
